/*
* Copyright 2016 Yonyou Auto Information Technology（Shanghai） Co. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-wechat-open-api
*
* @File name : WechatInterfaceConstants.java
*
* @Author : LiuJun
*
* @Date : 2016年10月19日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2016年10月19日    LiuJun    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmcc.gateway.wechat.constants;


/*
*
* @author LiuJun
* 微信接口地址公共常量
* @date 2016年10月19日
*/
public class WechatInterfaceConstants {
    
    /**
     * 微信接口地址定义
     */
    public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    public final static String MENU_ADD = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    public final static String MENU_QUERY = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    
    
    public final static String POST_MEDIA="https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE";
    public final static String GET_MEDIA="https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";
    
    public final static String SEND_TEMPLATE_MSG = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
    
    public final static String USER_QUERY = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    
    public final static String AUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
    public final static String AUTH_GET_OID = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    public final static String ADD_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/create?access_token=ACCESS_TOKEN";
    public final static String QUERY_ALL_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/get?access_token=ACCESS_TOKEN";
    public final static String QUERY_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/getid?access_token=ACCESS_TOKEN";
    public final static String UPDATE_GROUP_NAME = "https://api.weixin.qq.com/cgi-bin/groups/update?access_token=ACCESS_TOKEN";
    public final static String MOVE_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/update?access_token=ACCESS_TOKEN";
    public final static String MOVE_USERS_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/batchupdate?access_token=ACCESS_TOKEN";
    public final static String DELETE_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/delete?access_token=ACCESS_TOKEN";
    
    public final static String QR_GET = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";

    public final static String KF_ADD = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN";
    
    /**
     * 获得所有关注的用户
     */
    public final static String QUERY_ALL_USER="https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";
    
    public final static String MSG_TEXT_TYPE = "text";
    public final static String MSG_IMAGE_TYPE = "image";
    public final static String MSG_VOICE_TYPE = "voice";
    public final static String MSG_VIDEO_TYPE = "video";
    public final static String MSG_SHORTVIDEO_TYPE = "shortvideo";
    public final static String MSG_LOCATION_TYPE = "location";
    public final static String MSG_EVENT_TYPE = "event";

    
    /**
     * 消息结构常量定义
     */
    public final static String MSG_STRUCT_TOUSERNAME = "ToUserName";
    public final static String MSG_STRUCT_FROMUSERNAME = "FromUserName";
    public final static String MSG_STRUCT_CREATETIME = "CreateTime";
    public final static String MSG_STRUCT_MSGTYPE = "MsgType";
    public final static String MSG_STRUCT_MSGTYPE_TEXT = "text";
    public final static String MSG_STRUCT_CONTENT = "Content";
    public final static String MSG_STRUCT_MSGID = "ToUserName";
    public final static String MSG_STRUCT_PICURL = "PicUrl";
    public final static String MSG_STRUCT_MEDIAID = "MediaId";
    public final static String MSG_STRUCT_FORMAT = "Format";
    public final static String MSG_STRUCT_RECOGNITION = "Recognition";
    public final static String MSG_STRUCT_THUMBMEDIAID = "ThumbMediaId";
    public final static String MSG_STRUCT_LOCATION_X = "Location_X";
    public final static String MSG_STRUCT_LOCATION_Y = "Location_Y";
    public final static String MSG_STRUCT_SCALE = "Scale";
    public final static String MSG_STRUCT_LABEL = "Label";
    public final static String MSG_STRUCT_DESCRIPTION = "Description";
    public final static String MSG_STRUCT_TITLE = "Title";
    public final static String MSG_STRUCT_URL = "Url";
    
    public final static String MSG_STRUCT_MSGTYPE_EVENT = "event";
    public final static String MSG_STRUCT_MSGTYPE_EVENT_VALUE = "Event";
    
    public final static String MSG_STRUCT_MSGTYPE_EVENT_CLICK = "CLICK";
    public final static String MSG_STRUCT_MSGTYPE_EVENT_SCAN = "SCAN";
    public final static String MSG_STRUCT_MSGTYPE_EVENT_SUBSCRIBE = "subscribe";
    public final static String MSG_STRUCT_MSGTYPE_EVENT_UNSUBSCRIBE = "unsubscribe";

}
